/*
* 射击类
* */
class Fighter {
    actiontype = "";
    actionstart_x = 0;
    actionstart_y = 0;
    action_width = 10;
    action_height = 10;
    actioncount = 0;
    actionindex = 0;
    name = "hhh";
    live = 100;
    livelimit = 100;
    demage = 10;
    isfire = false;
    ammunition = 0;
    ammunitionlimit = 0;
    reloadammou = false;
    ratewidth=50;
    rateheight=50;
    delay=50;
    ammunitionbak=300;
    ammundelayindex=20;
    ammundelay=20;  //秒
    kills=0; //杀敌数
    constructor( actiontype,
                 _actionstart_x,
                 _actionstart_y,
                 _action_width,
                 _action_height,
                 _actioncount,
                 _actionindex,
                 _name,
                 _live,
                 _livelimit,
                 _demage,
                 _isfire,
                 _ammunition,
                 _ammunitionlimit) {
        this.actionstart_x=_actionstart_x;
        this.actionstart_y=_actionstart_y;
        this.action_width=_action_width;
        this.action_height=_action_height;
        this.actioncount=_actioncount;
        this.actionindex=_actionindex;
        this.name=_name;
        this.live=_live;
        this.livelimit=_livelimit;
        this.demage=_demage;
        this.isfire=_isfire;
        this.ammunition=_ammunition;
        this.ammunitionlimit=_ammunitionlimit;
    }
}